﻿<%@ Page Language="C#" MasterPageFile="~/Hospitals/Master/HospitalsMaster.Master"
    AutoEventWireup="true" CodeBehind="MyGoodsList.aspx.cs" Inherits="HZ.DrugTrade.Web.Hospitals.Procurement.MyGoodsList"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 87px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="MyGoodsList.aspx">备案采购产品申报</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                &nbsp;产品名称：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblOutLook" runat="server" Text="规格型号："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="Label2" runat="server" Text="材质："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMaterial" runat="server"></asp:TextBox>
                            </td>
                            
                        </tr>
                        <tr>
                            <td align="right" class="style1">
                                <asp:Label ID="lblUnit" runat="server" Text="最小计量单位："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                <asp:Label ID="lblProduceCompany" runat="server" Text="生产企业："></asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProduceCompany_SC" runat="server"></asp:TextBox>
                            </td>
                            <td align="right" class="style1">
                                中心审核状态：</td>
                            <td align="left">
                                <asp:DropDownList ID="dllAuditStatus" runat="server">
                                    <asp:ListItem Value="0">全部</asp:ListItem>
                                    <asp:ListItem Value="3">已通过</asp:ListItem>
                                    <asp:ListItem Value="4">已拒绝</asp:ListItem>
                                    <asp:ListItem Value="1">未审核</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                盟市审核状态：</td>
                            <td align="left">
                                <asp:DropDownList ID="dllAuditStatusMS" runat="server">
                                    <asp:ListItem Value="0">全部</asp:ListItem>
                                    <asp:ListItem Value="3">已通过</asp:ListItem>
                                    <asp:ListItem Value="4">已拒绝</asp:ListItem>
                                    <asp:ListItem Value="1">未审核</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwBidDrug" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！" OnRowCommand="gvwBidDrug_RowCommand">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsName" HeaderText="产品名称" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格型号" />
            <asp:BoundField DataField="Material" HeaderText="材质" />
            <asp:BoundField DataField="Unit" HeaderText="最小计量单位" />
            <asp:BoundField DataField="PackUnit" HeaderText="包装单位" />
            <asp:BoundField DataField="QualityLevel" HeaderText="产品类别"/>
            <asp:BoundField DataField="CompanyName" HeaderText="生产企业" />
           <%-- <asp:TemplateField HeaderText="提交时间">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("AddTime", "{0:yyyy-MM-dd}") %>'
                        ToolTip='<%# Bind("AddTime", "{0:yyyy-MM-dd HH:mm:ss}") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Width="80px" />
            </asp:TemplateField>--%>
            <%--<asp:BoundField DataField="AuditNote" HeaderText="审核备注" />--%>
            <asp:TemplateField HeaderText="提交状态">
                <ItemTemplate>
                <%# FormatSubmitStatus(Eval("AuditStatus"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="中心审核状态">
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# FormatAuditStatus(Eval("AuditStatus")) %>' ToolTip='<%# Eval("AuditNote") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="盟市审核状态">
                <ItemTemplate>
                   <%# FormatAuditStatus(Eval("AuditStatusMS"))%>
                </ItemTemplate>
                <HeaderStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <hz:HzLinkButton ID="HzLinkButton1" runat="server" CommandName="Edit" OnClientClick='<%# GetURLScript("RegisterGoods.aspx?ID="+Eval("ID")) %>' Text="编辑" Visible='<%# Convert.ToInt32(Eval("SubmitToUS"))!=1?true:false %>' ></hz:HzLinkButton>
                    <hz:HzLinkButton ID="lbtnDel" runat="server" CommandName="Del" OnClientClick="return  confirm('确认要删除此行信息吗？');" CommandArgument='<%#Eval("ID") %>' Visible='<%# Convert.ToInt32(Eval("AuditStatusMS"))==1?true:false %>'
                        Text="删除"></hz:HzLinkButton>
                </ItemTemplate>
                <HeaderStyle Width="40px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>说明：<span>未审核产品，可以删除。</span></li>
        </ul>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnAdd" runat="server" OnClientClick="window.location='RegisterGoods.aspx';return false;"
            Text="备案采购产品申报" CssClass="btn" Width="117px" ToolTip="备案采购产品申报" />
    </div>
</asp:Content>
